package com.yuke.cloud.service.pmc.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.pmc.dto.ProdAttributeDto;
import com.yuke.cloud.service.pmc.dto.ProdMainAttrDto;
import com.yuke.cloud.service.pmc.dto.ProdSpecInfoAndPriceDto;
import com.yuke.cloud.service.pmc.entity.ProdAttribute;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProdAttributeMapper extends MyMapper<ProdAttribute> {
    List<ProdAttributeDto> getListsByCondition(@Param("categoryId") Long categoryId, @Param("attributeName") String attributeName);
    List<ProdAttributeDto> getAttributeInfoByCategoryId(Long categoryId);
    List<ProdSpecInfoAndPriceDto> getSpecInfoByAttribute(@Param("prodMainAttrDto") ProdMainAttrDto prodMainAttrDto,@Param("saleType")  Byte saleType);
}